import { getApiData } from "@/services/cpasRequest";
import { message } from "antd";
/**
 * 底稿模板 树
 * @param params 
 */
export async function templateTree(templateName: string) {
  const res = await getApiData('tpl.treeList', { templateName });
  return Promise.resolve({
    data: res.data,
    success: res.ok,
  });
}

/**
 * 
 * @returns 
 */
export async function getTplList() {
  const r = await getApiData('pub.mbTypeList', {});
  return Promise.resolve({
    data: r.data,
    success: r.ok,
  });
}